-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for protocol v2.0 #354
Conversation
This is mostly about adding support for the v2.0 type descriptor layout with some minor cleanups thrown in.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, some potential + optional maintainability and readability notes we may want to address while we're in here.
impl Decode for InputShapeTypeDescriptor { | ||
fn decode(buf: &mut Input) -> Result<Self, DecodeError> { | ||
ensure!(buf.remaining() >= 19, errors::Underflow); | ||
assert!(buf.get_u8() == 8); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As above, this would be clearer if it were InputShapeTypeDescriptor::DESCRIPTOR_ID
or something similar.
This is mostly about adding support for the v2.0 type descriptor layout
with some minor cleanups thrown in.